package com.team2.outpatient_sys.pojo;

import java.util.List;

/**
 * 处方信息 实体类
 */
public class Prescription {
    // 处方id
    private Integer id;
    // 病人id
    private Integer patientId;
    // 开方医生id
    private Integer doctorId;

    private List<PrescriptionMedicine> prescriptionMedicineList;

    public Prescription() {
    }

    public Prescription(Integer id, Integer patientId, Integer doctorId) {
        this.id = id;
        this.patientId = patientId;
        this.doctorId = doctorId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    @Override
    public String toString() {
        return "Prescription{" +
                "id=" + id +
                ", patientId=" + patientId +
                ", doctorId=" + doctorId +
                '}';
    }

    public List<PrescriptionMedicine> getPrescriptionMedicineList() {
        return prescriptionMedicineList;
    }

    public void setPrescriptionMedicineList(List<PrescriptionMedicine> prescriptionMedicineList) {
        this.prescriptionMedicineList = prescriptionMedicineList;
    }
}
